﻿using Microsoft.Extensions.Configuration;

namespace xu.TinyDBConfigProvider
{
    internal class TinyDBConfigurationSource : IConfigurationSource
    {
        private readonly TinyDBConfigOptions options;

        public TinyDBConfigurationSource(TinyDBConfigOptions options)
        {
            this.options = options;
        }

        public IConfigurationProvider Build(IConfigurationBuilder builder)
        {
            return new TinyDBConfigurationProvider(options);
        }
    }
}